package com.demo.ws;


import lombok.extern.slf4j.Slf4j;
import org.noear.solon.annotation.ServerEndpoint;
import org.noear.solon.core.message.Listener;
import org.noear.solon.core.message.Message;
import org.noear.solon.core.message.Session;

@Slf4j
@ServerEndpoint(path = "/ws/timeservice")
public class TimeService implements Listener {
    @Override
    public void onOpen(Session session) {

    }

    @Override
    public void onClose(Session session) {
        Listener.super.onClose(session);
    }

    @Override
    public void onError(Session session, Throwable error) {
        log.error("",error);
        Listener.super.onError(session, error);
    }

    @Override
    public void onMessage(Session session, Message message) {

    }
}